Contents

 scv Delphi CodeBar

The Delphi CodeBar is a popup toolbar application that augments the Delphi code edit window.  You can highlight code in the code window and click Buttons on the CodeBar to modify, store, or insert code into the code window.

Some major features:

 	- Insert common code blocks, line begin...end, if...then, procedures & more.
 	- Store any selected code in a code "stash".
 	- Paste code from your stash at any time with a simple double-click.
 	- Indent/unindent code.
 	- Insert Procedure and Unit comments in your custom format.
 	- Comment/uncomment code.
 	- Undo!

See  The Buttons for detailed coverage of all the commands and features of the CodeBar.

Notes:

The Delphi CodeBar keeps track of the active window, and will identify it as a Delphi code editor window before attempting any actions.  If the active window is not a Delphi code window, CodeBar will take no action.  You can choose to Lock the CodeBar to the current editor window to keep the CodeBar from tracking the active window; this will give it a definite target window to work with.


Buttons
The Buttons

Each of the buttons on the Delphi CodeBar has a popup menu associated with it.  These buttons are:

 	The Main Menu Button.
 	The Text Button.
 	The Format Button.
 	The Save Button.
 	The Load Button.
 	The Help Button.


Main Menu Button
The Main Menu Button

When you click the Main Menu Button, the Main Menu pops up with thefollowing options:

Minimize:
 - minimizes the CodeBar.

Undo
 - sends an UNDO command to the Delphi code window.

Stay on Top
 - toggle whether the CodeBar is the topmost application.

Lock to Window
 - This command will lock the CodeBar to the current Delphi code editor window; this makes sure that all commands are sent to the current code window, and no other code windows.

Back to Buttons, or Contents


Text Button
The Text Button

When you click the Text Button, the Text Menu pops up with thefollowing options:

Case:
 - this submenu lets you change the case of the highlighted code to either UPPER CASE, lower case, Title Case, or lets you flip the case of each character.

Code:
 - this submenu has these important options:

Code: begin...end
- inserts a BEGIN...END pair into your code.  Automatically surrounds  any highlighted code.

Code: if...then
- inserts an IF block into your code; with or without an ELSE clause. See the IF Window for options.

Code: for...next
- inserts a FOR...NEXT loop into your code.  See the  FOR Window for options.

Code: while / repeat / with
- inserts a WHILE, REPEAT, or WITH block into your code. See the WHILE Window for options.

Code: procedure / function
- inserts a new PROCEDURE into your code. See the PROCEDURE Window for options.

Insert UNIT comment
- inserts a UNIT comment into your code.  These are the descriptive comments that should be at the top of every UNIT.  The format is taken from the unitHEAD.txt file, which you can edit to contain your own comment format.

Insert PROC comment
- inserts a PROC comment into your code.  These are the descriptive comments that should be at the top of every PROCEDURE.  The format is taken from the procHEAD.txt file, which you can edit to contain your own comment format.

Back to Buttons, or Contents


Format Button
The Format Button

When you click the Format Button, the Format Menu pops up with thefollowing options:

indent / unindent
- this will indent or unindent the highlighted code. see the  INDENT Window for more info.

comment out: use //
- this will comment out all the highlighted lines of code, using the '//' command.  Note, this only has meaning in the 32-bit Delphi.

comment out: use {...}
- this will comment out all the highlighted code, by surrounding the code with braces " ... "

comment out: use (*...*)
- this will comment out all the highlighted code,  by surrounding the code with parentheses & stars, "(* ... *)"

uncomment
- this will uncomment all the highlighted lines of code, deleting the '//' commands at the start of each line, or any surrounding "..." or "(*...*)" pair.

Back to Buttons, or Contents


Save Button
The Save Button

When you click the Save Button, you can save the currently highlighted code to your code Stash.  The Save Window will popup:

You can enter a filename for your saved code, plus a brief description.  Your code will be saved, and can be retrieved at a later time by  clicking the Load Button.

Back to Buttons, or Contents


Load Button
The Load Button

When you click the Load Button, you can view the clips of code in your code Stash.  The Stash Window will popup:

You can single-click any filename in the left pane of the window to view the code at the right.  You can double-click any filename (or press the Copy Button) to copy the stashed code into the current  Delphi code editor window.

Back to Buttons, or Contents


Help Button
The Help Button

When you click the Help Button, the Help Menu will popup, with these options:

About:
 - show basic product and version info.

Help:
 - shows this help file.

Register:
 - this option only appears if your copy of CodeBar is an unregistered shareware version.  We hope you will click here to find out how to register, and register soon.  We have a vast array of programmer tools planned, and depend on registrations to help finance new projects.  If you have already registered then THANK YOU.

Back to Buttons, or Contents


IF Window
The IF Window


FOR Window
 The FOR Window

The FOR Window pops up when you  click the "for...next" menu to insert  a FOR...NEXT loop into your code.   This Window has the following data  fields:

Variable  - the variable to use in the loop.

Range  - the start & end values for the loop;   these values can be numeric or textual.

Downto  - check here if this is a "downto" loop.

Surround  - check here to surround the highlighted   text with the FOR...NEXT loop.


Indent Window
 The Indent Window

The Indent Window pops up when you  click the "indent / unindent" menu.  This Window has the following data  fields:

Indent, Unindent  - choose the operation you wish to use.

Spaces  - enter the number of spaces to modify.

Code Preview  - shows the currently selected code.


WHILE Window
 The WHILE Window

The WHILE Window pops up when you click the "repeat / while / with" menu item to insert a REPEAT, WHILE or WITH block into your code.  This Window  has the following data fields:

Repeat...until,	while...end, with...end  - pick the type of block to insert

Condition - enter the condition for the block of code

Surround - check here to surround the existing code with the new block of code


Procedure Window
 The Procedure Window

The PROC Window pops up when you click the "procedure / function" menu item to insert a PROCEDURE or FUNCTION into your code.  This Window has the following data fields:Procedure, Function, Constructor, Destructor: - select the type of procedure to insert

Name - name of the procedure to insert

Use proc comment - check here to create a standard procedure comment as well

Make var block - check here to make a VAR block, will default to "var i: integer;".


About scv Delphi CodeBar

scv Delphi CodeBar is Copyright 1997 by scv systems.

scv Delphi CodeBar was written by s.c.virtes.

For the latest info, visit the SCV Systems website at: www.scvs.com

scv systems
1313-K Simpson Way
Escondido CA 92026